/* --- Variables de couleurs --- */
:root {
    --primary-color: #0b3d60; /* Bleu marine du logo */
    --secondary-color: #1a5b8c;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

/* --- Styles globaux --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    /*padding-bottom: 40px; */
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* --- En-tÃªte (Header) et Navigation --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-header {
    height: 60px;
    border-radius: 50%;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* --- Menu Burger --- */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* --- Boutons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s, transform 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Section HÃ©ro (Accueil) --- */
.hero {
    background: linear-gradient(rgba(11, 61, 96, 0.8), rgba(11, 61, 96, 0.9)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1920&auto=format&fit=crop') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    margin-top: 60px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Section Valeur AjoutÃ©e --- */
.section-valeur {
    background-color: var(--white);
    text-align: center;
}

.section-valeur h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-valeur p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto;
    color: #555;
}

/* --- Section Services --- */
.section-services {
    background-color: var(--light-bg);
}

.services {
    padding: 80px 20px;
    background-color: var(--light-bg);
    text-align: center;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.section-services h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-align: center;
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: #555;
}

/* --- Section Engagements --- */
.section-engagements {
    background-color: var(--white);
}

.section-engagements h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    text-align: center;
}

.engagements-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.engagements-list li {
    background: var(--light-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.engagements-list li strong {
    color: var(--primary-color);
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* --- Section Call To Action (Final) --- */
.section-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    margin-bottom: 40px;

}

.section-cta h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-cta p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta .btn-primary {
    color: var(--primary-color);
    background-color: var(--white);
}

.section-cta .btn-primary:hover {
    background-color: var(--light-bg);
}

/* --- Section Contact (Page contact existante) --- */
.contact {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    bottom: 0;
    margin-top: 30px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* --- Pied de page (Footer) --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    position:absolute;
   /* bottom:0;*/
   /* left: 0;*/
    width: 100%;
    z-index: 4;
}

.link_footer {
    color: var(--white);
}

/* --- Responsive Design (Mobiles) --- */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
        position: relative;
        right: -8em;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        text-align: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    nav ul li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    nav ul.active {
        max-height: 350px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .container {
        padding: 50px 20px;
    }

    .section-valeur h2, 
    .section-services h2, 
    .section-engagements h2, 
    .section-cta h2 {
        font-size: 1.8rem;
    }
}

/* ==============================================================================
   SECTION CARROUSEL TECHNOLOGIES
   ============================================================================== */
   .tech-carousel-section {
    background-color: var(--white);
    padding: 60px 0 80px 0;
    overflow: hidden;
}

.carousel-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Effet de fondu blanc sur les bords gauche et droit */
.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 2;
}

/* La piste qui contient les logos et qui s'anime */
.carousel-track {
    display: flex;
    align-items: center;
    /* Largeur d'un bloc (200px) x Nombre total de logos (16) */
    width: calc(200px * 16); 
    animation: scroll-logos 35s linear infinite;
}

/* Met l'animation en pause si l'utilisateur passe sa souris dessus */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Style de chaque bloc logo */
.carousel-logo {
    width: 200px; /* Largeur fixe de chaque emplacement */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    flex-shrink: 0;
}

.carousel-logo img {
    max-width: 100%;
    max-height: 70px; /* Uniformise la hauteur des logos */
    object-fit: contain;
    filter: grayscale(100%) opacity(60%); /* Gris et légèrement transparent par défaut */
    transition: all 0.4s ease;
}

.carousel-logo img:hover {
    filter: grayscale(0%) opacity(100%); /* Couleurs réelles au survol */
    transform: scale(1.1); /* Petit effet de zoom */
}

/* Animation PHP envoi */

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border-left-color: #09f; /* Couleur de l'animation */
    animation: tourne 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

/* Animation intégrée au bouton */
.spinner-btn {
    border: 3px solid rgba(255, 255, 255, 0.3); /* Blanc transparent pour l'anneau de fond */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border-left-color: var(--white); /* Blanc pur pour l'animation tournante */
    animation: tourne 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px; /* Petit espace entre le cercle et le texte "Envoi en cours..." */
}

@keyframes tourne {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Style basique pour le message de retour */
#messageRetour {
    margin-top: 15px;
    font-weight: bold;
}

/* L'animation de défilement */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Décale vers la gauche de la largeur exacte des 8 premiers logos (200px * 8 = 1600px) */
        transform: translateX(calc(-200px * 8)); 
    }
}

/* --- Responsive pour les petits écrans --- */
@media (max-width: 768px) {
    .carousel-container::before,
    .carousel-container::after {
        width: 60px; /* Réduit la zone de fondu sur mobile */
    }
    .carousel-title {
        font-size: 1.5rem;
    }
}

/* --- Numéro Téléphone --- */

.lien-decouverte-tel {
    color: #0056b3;
    text-decoration: none;
    font-weight: bold;
    height: 25px;
    border-radius: 50%;
}

.lien-decouverte-tel:hover {
    color: #003d82;
    border-bottom: 1px solid #003d82;
    height: 25px;
    border-radius: 50%;
}